package org.example.cmsvue.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
/**
 * <p>
 * 
 * </p>
 *
 * @author laifeng
 * @since 2025-02-19
 */
@Getter
@Setter
@ToString
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商品名称
     */
    private String name;

    /**
     * 原价
     */
    private BigDecimal oldPrice;

    /**
     * 现价
     */
    private BigDecimal newPrice;

    /**
     * 商品描述
     */
    private String desc;

    /**
     * 状态 1-上架 0-下架
     */
    private Byte status;

    /**
     * 图片地址
     */
    private String imgUrl;

    /**
     * 库存
     */
    private Integer inventoryCount;

    /**
     * 销量
     */
    private Integer saleCount;

    /**
     * 收藏数
     */
    private Integer favorCount;

    /**
     * 发货地
     */
    private String address;

    /**
     * 分类ID
     */
    private Integer categoryId;

    private LocalDateTime createAt;

    private LocalDateTime updateAt;
}
